<?php
class AiuserController extends EController
{
    public $layout = 'main';
    //过滤器
    public function filters()
    {
        return array(
            array(
                'application.filters.BackEndAuthRequestFilter',
            )
        );
    }

    public function actionlist()
    {
        $pid = $_GET['id'];
        $cookie = new CHttpCookie('aiuserhttpbor', str_replace(Yii::app()->request->baseUrl."/","",$_SERVER["REQUEST_URI"]));
        $cookie->expire = time()+60*60*24*30;
        Yii::app()->request->cookies['aiuserhttpbor']=$cookie;
        $this->layout='list';
        $this->son_menu=0;
        $act_list=ActionMenuHelper::getHiddenMenu();
        $model=new aiuser('search');
        if(isset($_GET['aiuser'])){
            $model->attributes=$_GET['aiuser'];
        }
        $this->render('list',array(
                'dataProvider'=>$model->search(),
                'act_list'=>$act_list,
                'model'=>$model)
        );
    }
}